<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String bp = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String __MANAGER = bp+"admin/";
String __SHOWMAINVIEW = __MANAGER+"showModule.do";
String __CREATEMENUBUTTON = __MANAGER+"createMenuButton.do";
%>

<!DOCTYPE html>
<html>
  <head>
    <title>SWIFT4J快速开发平台</title>
  </head>
  
<body>
	<div class="d-1">
		<h2 class="h2-ac">治疗史调查</h2>
		<div class="d-b1">
			<form name="treathisForm1" onsubmit="return false;">
				<input type="hidden" name="treathis.treatId" value="${treathis.treatId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
				<table border="0" cellspacing="0" cellpadding="15" class="fs16">
			      <tr>
			      	<td>针对病因治疗，<br />缓解肝硬化发展：</td>
			      	<td>
			      	      <ul>
			      	      	<li class="p10">（1）是否使用乙肝抗病毒治疗：
			      	      	      	<input type="radio" name="treathis.isyg" value="1" <c:if test="${treathis.isyg == 1 }">checked="checked"</c:if> >否
		      	      	      	     <input type="radio" name="treathis.isyg" value="2" <c:if test="${treathis.isyg == 2 }">checked="checked"</c:if> >是
		      	      	      	      使用药物（<span><input type="checkbox" name="ygwm_1" value="1" <c:if test="${ygwm_1 eq 1 }">checked="checked"</c:if> >拉米夫定</span>
		      	      	      	                          <span><input type="checkbox" name="ygwm_2" value="1" <c:if test="${ygwm_2 eq 1 }">checked="checked"</c:if> >恩替卡韦</span>
		      	      	      	                          <span><input type="checkbox" name="ygwm_3" value="1" <c:if test="${ygwm_3 eq 1 }">checked="checked"</c:if> >阿德福韦酯</span>
		      	      	      	                          <span><input type="checkbox" name="ygwm_4" value="1" <c:if test="${ygwm_4 eq 1 }">checked="checked"</c:if> >替比夫定</span>
		      	      	      	                          <span><input type="checkbox" name="ygwm_5" value="1" <c:if test="${ygwm_5 eq 1 }">checked="checked"</c:if> >替诺福韦</span>）<br />
					      <table id="ygwmTableId" border="1" cellspacing="0" cellpadding="5" class="fs16 ta-c medc-tb" >
					      	<tr>
					      	      <td rowspan="3">治疗药物</td>
					      	      <td rowspan="3">服用剂量</td>
					      	      <td rowspan="3">用药起止时间（年/月）</td>
					      	      <td rowspan="3" class="w100">停药原因（1.耐药；2.副作用；3.依从性差；4.其他）</td>
					      	      <td colspan="8">疗效</td>
					      	</tr>
					      	<tr>
					      	      <td colspan="2">HbeAg血清学转换</td>
					      	      <td colspan="6">DNA定量（次方/mL）</td>
					      	</tr>
					      	<tr>
					      	      <td>无</td>
					      	      <td>有（抗病毒后多久/月）</td>
					      	      <td>起始</td>
					      	      <td>12周</td>
					      	      <td>24周</td>
					      	      <td>48周</td>
					      	      <td>转阴时间</td>
					      	      <td>耐药时间</td>
					      	</tr>
					      	<c:choose>
								<c:when test="${not empty treathis.ygwm }">
									<c:forEach items="${treathis.ygwm }" var="ygwm">
										<input type="hidden" name="ygwmId" value="${ygwm.ygwmId }"/>
										<tr>
											<td><input type="text" name="ygwm_drugname" value="${ygwm.drugname }"></td>
											<td><input type="text" name="ygwm_fyjl" value="${ygwm.fyjl }"></td>
											<td><input type="text" name="ygwm_yyqzsj" value="${ygwm.fyjl }"></td>
											<td><input type="text" name="ygwm_tyyy" value="${ygwm.tyyy }"></td>
											<td><input type="text" name="ygwm_xqxzh" value="${ygwm.xqxzh }"></td>
											<td><input type="text" name="ygwm_dnaqs" value="${ygwm.dnaqs }"></td>
											<td><input type="text" name="ygwm_dnatw" value="${ygwm.dnatw }"></td>
											<td><input type="text" name="ygwm_dnatf" value="${ygwm.dnatf }"></td>
											<td><input type="text" name="ygwm_dnafe" value="${ygwm.dnafe }"></td>
											<td><input type="text" name="ygwm_dnazy" value="${ygwm.dnazy }"></td>
											<td><input type="text" name="ygwm_dnany" value="${ygwm.dnany }"></td>
										</tr>
									</c:forEach>
								</c:when>
								<c:when test="${empty treathis.ygwm }">
									<input type="hidden" name="ygwmId" value=""/>
									<td><input type="text" name="ygwm_drugname" value=""></td>
									<td><input type="text" name="ygwm_fyjl" value=""></td>
									<td><input type="text" name="ygwm_yyqzsj" value=""></td>
									<td><input type="text" name="ygwm_tyyy" value=""></td>
									<td><input type="text" name="ygwm_xqxzh" value=""></td>
									<td><input type="text" name="ygwm_dnaqs" value=""></td>
									<td><input type="text" name="ygwm_dnatw" value=""></td>
									<td><input type="text" name="ygwm_dnatf" value=""></td>
									<td><input type="text" name="ygwm_dnafe" value=""></td>
									<td><input type="text" name="ygwm_dnazy" value=""></td>
									<td><input type="text" name="ygwm_dnany" value=""></td>
								</c:when>
							</c:choose>
					      </table>
			      	      	</li>
			      	      	<li class="p10">（2）是否使用丙肝抗病毒治疗：
			      	      	      <input type="radio" name="treathis.isbg" value="1" <c:if test="${treathis.isbg == 1 }">checked="checked"</c:if> >否
		      	      	      	      <input type="radio" name="treathis.isbg" value="2" <c:if test="${treathis.isbg == 2 }">checked="checked"</c:if> >是
		      	      	      	      使用药物（<span><input type="checkbox" name="bgwm_1" value="1" <c:if test="${bgwm_1 eq 1 }">checked="checked"</c:if> >短效干扰素</span>
		      	      	      	                          <span><input type="checkbox" name="bgwm_2" value="1" <c:if test="${bgwm_2 eq 1 }">checked="checked"</c:if> >长效干扰素</span>
		      	      	      	                          <span><input type="checkbox" name="bgwm_3" value="1" <c:if test="${bgwm_3 eq 1 }">checked="checked"</c:if> >利巴韦林</span>
		      	      	      	                          <span><input type="checkbox" name="bgwm_4" value="1" <c:if test="${bgwm_4 eq 1 }">checked="checked"</c:if> >Sofosbuvir (SOF)</span>
		      	      	      	                          <span><input type="checkbox" name="bgwm_5" value="1" <c:if test="${bgwm_5 eq 1 }">checked="checked"</c:if> >simeprevir(SIM)</span>
		      	      	      	                          <span><input type="checkbox" name="bgwm_6" value="1" <c:if test="${bgwm_6 eq 1 }">checked="checked"</c:if> >daclatasvir(DCV)</span>）<br />
					      <table id="bgwmTableId" border="1" cellspacing="0" cellpadding="5" class="fs16 ta-c medc-tb" >
					      	<tr>
					      	      <td rowspan="3">治疗药物</td>
					      	      <td rowspan="3">服用剂量</td>
					      	      <td rowspan="3">用药起止时间（年/月）</td>
					      	      <td rowspan="3" class="w100">停药原因（1.耐药；2.副作用；3.依从性差；4.其他）</td>
					      	      <td colspan="8">疗效</td>
					      	</tr>
					      	<tr>
					      	      <td colspan="2">HbeAg血清学转换</td>
					      	      <td colspan="6">DNA定量（次方/mL）</td>
					      	</tr>
					      	<tr>
					      	      <td>无</td>
					      	      <td>有（抗病毒后多久/月）</td>
					      	      <td>起始</td>
					      	      <td>12周</td>
					      	      <td>24周</td>
					      	      <td>48周</td>
					      	      <td>转阴时间</td>
					      	      <td>耐药时间</td>
					      	</tr>
					      	<c:choose>
								<c:when test="${not empty treathis.bgwm }">
									<c:forEach items="${treathis.bgwm }" var="bgwm">
										<input type="hidden" name="bgwmId" value="${bgwm.bgwmId }"/>
										<tr>
											<td><input type="text" name="bgwm_drugname" value="${bgwm.drugname }"></td>
											<td><input type="text" name="bgwm_fyjl" value="${bgwm.fyjl }"></td>
											<td><input type="text" name="bgwm_yyqzsj" value="${bgwm.yyqzsj }"></td>
											<td><input type="text" name="bgwm_tyyy" value="${bgwm.tyyy }"></td>
											<td><input type="text" name="bgwm_dnaqs" value="${bgwm.dnaqs }"></td>
											<td><input type="text" name="bgwm_dnatw" value="${bgwm.dnatw }"></td>
											<td><input type="text" name="bgwm_dnatf" value="${bgwm.dnatf }"></td>
											<td><input type="text" name="bgwm_dnafe" value="${bgwm.dnafe }"></td>
											<td><input type="text" name="bgwm_dnazy" value="${bgwm.dnazy }"></td>
											<td><input type="text" name="bgwm_dnany" value="${bgwm.dnany }"></td>
										</tr>
									</c:forEach>
								</c:when>
								<c:when test="${empty treathis.bgwm }">
									<input type="hidden" name="bgwmId" value=""/>
									<td><input type="text" name="bgwm_drugname" value=""></td>
									<td><input type="text" name="bgwm_fyjl" value=""></td>
									<td><input type="text" name="bgwm_yyqzsj" value=""></td>
									<td><input type="text" name="bgwm_tyyy" value=""></td>
									<td><input type="text" name="bgwm_dnaqs" value=""></td>
									<td><input type="text" name="bgwm_dnatw" value=""></td>
									<td><input type="text" name="bgwm_dnatf" value=""></td>
									<td><input type="text" name="bgwm_dnafe" value=""></td>
									<td><input type="text" name="bgwm_dnazy" value=""></td>
									<td><input type="text" name="bgwm_dnany" value=""></td>
								</c:when>
							</c:choose>
					      </table>			      	      	
			      	      	</li>
			      	      	<li class="p10">（3）自身免疫性肝炎治疗：
			      	      	      <input type="radio" name="treathis.iszs" value="1" <c:if test="${treathis.iszs == 1 }">checked="checked"</c:if> >否
		      	      	      	      <input type="radio" name="treathis.iszs" value="1" <c:if test="${treathis.iszs == 2 }">checked="checked"</c:if> >是
		      	      	      	      使用药物（<span><input type="checkbox" name="zswm_1" value="1" <c:if test="${zswm_1 eq 1 }">checked="checked"</c:if> >醋酸泼尼松</span>
		      	      	      	                          <span><input type="checkbox" name="zswm_2" value="1" <c:if test="${zswm_2 eq 1 }">checked="checked"</c:if> >甲泼尼龙</span>
		      	      	      	                          <span><input type="checkbox" name="zswm_3" value="1" <c:if test="${zswm_3 eq 1 }">checked="checked"</c:if> >硫唑嘌呤</span>
		      	      	      	                          <span><input type="checkbox" name="zswm_4" value="1" <c:if test="${zswm_4 eq 1 }">checked="checked"</c:if> >环孢素</span>
		      	      	      	                          <span><input type="checkbox" name="zswm_5" value="1" <c:if test="${zswm_5 eq 1 }">checked="checked"</c:if> >他克莫司</span>
		      	      	      	                          <span><input type="checkbox" name="zswm_6" value="1" <c:if test="${zswm_6 eq 1 }">checked="checked"</c:if> >吗替麦考酚酯</span>
		      	      	      	                          <span><input type="checkbox" name="zswm_7" value="1" <c:if test="${zswm_7 eq 1 }">checked="checked"</c:if> >>熊去氧胆酸</span><br />
					     <table id="zswmTableId" border="1" cellspacing="0" cellpadding="5" class="fs16 ta-c medc-tb" >
					      	<tr>
					      	      <td>治疗药物</td>
					      	      <td>服用剂量</td>
					      	      <td>用药起止时间（年/月）</td>
					      	      <td>最大剂量</td>
					      	      <td>停药原因（1.耐药；2.副作用；3.依从性差；4其他）</td>
					      	      <td>疗效</td>
					      	</tr>
					      	<c:choose>
								<c:when test="${not empty treathis.zswm }">
									<c:forEach items="${treathis.zswm }" var="zswm">
										<input type="hidden" name="zswmId" value="${zswm.zswmId }"/>
										<tr>
											<td><input type="text" name="zswm_drugname" value="${zswm.drugname }"></td>
											<td><input type="text" name="zswm_fyjl" value="${zswm.fyjl }"></td>
											<td><input type="text" name="zswm_yyqzsj" value="${zswm.yyqzsj }"></td>
											<td><input type="text" name="zswm_zdjl" value="${zswm.zdjl }"></td>
											<td><input type="text" name="zswm_tyyy" value="${zswm.tyyy }"></td>
											<td><input type="text" name="zswm_lx" value="${zswm.lx }"></td>
										</tr>
									</c:forEach>
								</c:when>
								<c:when test="${empty treathis.zswm }">
									<input type="hidden" name="zswmId" value=""/>
									<td><input type="text" name="zswm_drugname" value=""></td>
									<td><input type="text" name="zswm_fyjl" value=""></td>
									<td><input type="text" name="zswm_yyqzsj" value=""></td>
									<td><input type="text" name="zswm_zdjl" value=""></td>
									<td><input type="text" name="zswm_tyyy" value=""></td>
									<td><input type="text" name="zswm_lx" value=""></td>
								</c:when>
							</c:choose>
					      </table>    	      	      	                          			      	      	
			      	      	</li>
			      	      	<li class="p10 other">（4）其他危险因素处理<br/>
			      	      	      <span class="d-ib">戒酒：</span>
		      	      	            	      <span class="pr10"><input type="radio" name="treathis.jiejiu" value="1" <c:if test="${treathis.jiejiu == 1 }">checked="checked"</c:if> >无</span>
		      	      	            	      <span class="pr10"><input type="radio" name="treathis.jiejiu" value="2" <c:if test="${treathis.jiejiu == 1 }">checked="checked"</c:if> >有</span><br />
		      	      	            	      <span class="d-ib">戒烟：</span>
		      	      	            	      <span class="pr10"><input type="radio" name="treathis.jieyan" value="1" <c:if test="${treathis.jieyan == 1 }">checked="checked"</c:if> >无</span>
		      	      	            	      <span class="pr10"><input type="radio" name="treathis.jieyan" value="2" <c:if test="${treathis.jieyan == 1 }">checked="checked"</c:if> >有</span><br />
		      	      	            	      <span class="d-ib">控制体重：</span>
		      	      	            	      <span class="pr10"><input type="radio" name="treathis.kztz" value="1" <c:if test="${treathis.kztz == 1 }">checked="checked"</c:if> >无</span>
		      	      	            	      <span class="pr10"><input type="radio" name="treathis.kztz" value="2" <c:if test="${treathis.kztz == 1 }">checked="checked"</c:if> >有</span><br />
		      	      	            	      <span class="d-ib">其他：</span>
		      	      	            	      <input type="text" name="treathis.other" value="${treathis.other }">
			      	      	</li>
			      	      </ul>
			      	</td>
			      </tr>
			</table>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="treathisSave1()">保存</a>		      			      				      	
		      </form>
		</div>

		<div class="d-b1">
			<form name="treathisForm2" onsubmit="return false;">
			<input type="hidden" name="treathis.treatId" value="${treathis.treatId }"/>
			<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
			<table border="0" cellspacing="0" cellpadding="15" class="fs16">
			      <tr>
			      	<td >门脉高压症的处理：</td>
			      	<td class="pt30">
			      	      <span class="pr10"><input type="checkbox" name="gywm_1" value="1" <c:if test="${gywm_1 eq 1 }">checked="checked"</c:if> >门体分流术</span>
			      	      <span class="pr10"><input type="checkbox" name="gywm_2" value="1" <c:if test="${gywm_2 eq 1 }">checked="checked"</c:if> >脾切除术</span>
			      	      <span class="pr10"><input type="checkbox" name="gywm_3" value="1" <c:if test="${gywm_3 eq 1 }">checked="checked"</c:if> >脾栓塞术</span>
			      	      <span class="pr10"><input type="checkbox" name="gywm_4" value="1" <c:if test="${gywm_4 eq 1 }">checked="checked"</c:if> >食管静脉套扎</span>
			      	      <span class="pr10"><input type="checkbox" name="gywm_5" value="1" <c:if test="${gywm_5 eq 1 }">checked="checked"</c:if> >食管胃底静脉硬化剂</span>
			      	      <span class="pr10"><input type="checkbox" name="gywm_6" value="1" <c:if test="${gywm_6 eq 1 }">checked="checked"</c:if> >普萘洛尔</span>
			      	      <span class="pr10"><input type="checkbox" name="gywm_7" value="1" <c:if test="${gywm_7 eq 1 }">checked="checked"</c:if> >硝酸甘油类药物</span><br />
				      <table id="gywmTableId" border="1" cellspacing="0" cellpadding="5" class="ta-c mt10">
				      	<tr><td>手术、介入、内镜治疗</td><td>时间</td><td>副作用</td><td>疗效</td></tr>
				      	<c:choose>
							<c:when test="${not empty treathis.gywm }">
								<c:forEach items="${treathis.gywm }" var="gywm">
									<input type="hidden" name="gywmId" value="${gywm.gywmId }"/>
									<tr>
										<td><input type="text" name="gywm_operation" value="${gywm.operation }"></td>
										<td><input type="text" name="gywm_operatetime" value="${gywm.operatetime }"></td>
										<td><input type="text" name="gywm_fzy" value="${gywm.fzy }"></td>
										<td><input type="text" name="gywm_lx" value="${gywm.lx }"></td>
									</tr>
								</c:forEach>
							</c:when>
							<c:when test="${empty treathis.gywm }">
								<input type="hidden" name="gywmId" value=""/>
								<td><input type="text" name="gywm_operation" value=""></td>
								<td><input type="text" name="gywm_operatetime" value=""></td>
								<td><input type="text" name="gywm_fzy" value=""></td>
								<td><input type="text" name="gywm_lx" value=""></td>
							</c:when>
						</c:choose>
				      </table>
				      <table border="1" cellspacing="0" cellpadding="5" class="mt10 ta-c">
					      	<tr>
					      	      <td>治疗药物</td>
					      	      <td>服用剂量</td>
					      	      <td>用药起止时间（年/月）</td>
					      	      <td>最大剂量</td>
					      	      <td>停药原因（1.耐药；2.副作用；3.依从性差；4其他）</td>
					      	      <td>疗效</td>
					      	</tr>
					      	<c:choose>
							<c:when test="${not empty treathis.gywm }">
								<c:forEach items="${treathis.gywm }" var="gywm">
									<tr>
										<td><input type="text" name="gywm_drugname" value="${gywm.drugname }"></td>
										<td><input type="text" name="gywm_fyjl" value="${gywm.fyjl }"></td>
										<td><input type="text" name="gywm_yyqzsj" value="${gywm.yyqzsj }"></td>
										<td><input type="text" name="gywm_zdjl" value="${gywm.zdjl }"></td>
										<td><input type="text" name="gywm_tyyy" value="${gywm.tyyy }"></td>
										<td><input type="text" name="gywm_lx" value=""></td>
									</tr>
								</c:forEach>
							</c:when>
							<c:when test="${empty treathis.gywm }">
								<input type="hidden" name="gywmId" value=""/>
								<td><input type="text" name="gywm_drugname" value=""></td>
								<td><input type="text" name="gywm_fyjl" value=""></td>
								<td><input type="text" name="gywm_yyqzsj" value=""></td>
								<td><input type="text" name="gywm_zdjl" value=""></td>
								<td><input type="text" name="gywm_tyyy" value=""></td>
								<td><input type="text" name="gywm_lx" value=""></td>
							</c:when>
						</c:choose>
				      </table>
			      	</td>
			      </tr>
		      	</table>
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="treathisSave2()">保存</a>		      			      				      			      	
		      </form>
		</div>
	</div>
	<script type="text/javascript">
		function treathisSave1() {
			$(treathisForm1).form('submit',{
				url: __MANAGER+'liverDoc_treathisSave1.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_treathis').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function treathisSave2() {
			$(treathisForm2).form('submit',{
				url: __MANAGER+'liverDoc_treathisSave2.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_treathis').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		$(function() {
			$("input[name^='ygwm_'][type=checkbox]").click(function() {
				if($(this).is(':checked')) {
					var medicineName = $(this).parent().text();
					var html = '<tr><input type="hidden" name="ygwmId" value=""/>'+
						'<td><input type="text" name="ygwm_drugname" value="'+medicineName+'"></td>'+
						'<td><input type="text" name="ygwm_fyjl" value=""></td>'+
						'<td><input type="text" name="ygwm_yyqzsj" value=""></td>'+
						'<td><input type="text" name="ygwm_tyyy" value=""></td>'+
						'<td><input type="text" name="ygwm_xqxzh" value=""></td>'+
						'<td><input type="text" name="ygwm_dnaqs" value=""></td>'+
						'<td><input type="text" name="ygwm_dnatw" value=""></td>'+
						'<td><input type="text" name="ygwm_dnatf" value=""></td>'+
						'<td><input type="text" name="ygwm_dnafe" value=""></td>'+
						'<td><input type="text" name="ygwm_dnazy" value=""></td>'+
						'<td><input type="text" name="ygwm_dnany" value=""></td></tr>';
					$(html).appendTo($('#ygwmTableId'));
				}
			});
		});
		
		$(function() {
			$("input[name^='bgwm_'][type=checkbox]").click(function() {
				if($(this).is(':checked')) {
					var medicineName = $(this).parent().text();
					var html = '<tr><input type="hidden" name="bgwmId" value=""/>'+
						'<td><input type="text" name="bgwm_drugname" value="'+medicineName+'"></td>'+
						'<td><input type="text" name="bgwm_fyjl" value=""></td>'+
						'<td><input type="text" name="bgwm_yyqzsj" value=""></td>'+
						'<td><input type="text" name="bgwm_tyyy" value=""></td>'+
						'<td><input type="text" name="bgwm_dnaqs" value=""></td>'+
						'<td><input type="text" name="bgwm_dnatw" value=""></td>'+
						'<td><input type="text" name="bgwm_dnatf" value=""></td>'+
						'<td><input type="text" name="bgwm_dnafe" value=""></td>'+
						'<td><input type="text" name="bgwm_dnazy" value=""></td>'+
						'<td><input type="text" name="bgwm_dnany" value=""></td></tr>';						
					$(html).appendTo($('#bgwmTableId'));
				}
			});
		});
		
		$(function() {
			$("input[name^='zswm_'][type=checkbox]").click(function() {
				if($(this).is(':checked')) {
					var medicineName = $(this).parent().text();
					var html = '<tr><input type="hidden" name="zswmId" value=""/>'+
						'<td><input type="text" name="zswm_drugname" value="'+medicineName+'"></td>'+
						'<td><input type="text" name="zswm_fyjl" value=""></td>'+
						'<td><input type="text" name="zswm_yyqzsj" value=""></td>'+
						'<td><input type="text" name="zswm_zdjl" value=""></td>'+
						'<td><input type="text" name="zswm_tyyy" value=""></td>'+
						'<td><input type="text" name="zswm_lx" value=""></td></tr>';						
					$(html).appendTo($('#zswmTableId'));
				}
			});
		});
		
		$(function() {
			$("input[name^='gywm_'][type=checkbox]").click(function() {
				if($(this).is(':checked')) {
					var medicineName = $(this).parent().text();
					var html = '<tr><input type="hidden" name="gywmId" value=""/>'+
						'<td><input type="text" name="gywm_operation" value="'+medicineName+'"></td>'+
						'<td><input type="text" name="gywm_operatetime" value=""></td>'+
						'<td><input type="text" name="gywm_fzy" value=""></td>'+
						'<td><input type="text" name="gywm_lx" value=""></td></tr>';						
					$(html).appendTo($('#gywmTableId'));
				}
			});
		});
	</script>
</body>
</html>
